package com.unitd.frame.comm.utils.encrypt.base64.encoder.impl;

/**
 * @desc URL安全的Base64编码/解码器
 * @filename UrlBase64Encoder.java
 * @copyright www.unitd.com
 * @author Hudan
 * @version 1.0
 * @date 2017/8/14
 */
public class UrlBase64Encoder extends Base64Encoder {

	public UrlBase64Encoder() {
		encodingTable[encodingTable.length - 2] = (byte) '-';
		encodingTable[encodingTable.length - 1] = (byte) '_';
		padding = (byte) '.';

		// 必须使用新的编码值重新创建解码表
		initialiseDecodingTable();
	}
}